import layout from '@/views/layout'

export default {
  path: '/manageinfo',
  name: 'manageinfo',
  component: layout,
  redirect: '/manageinfo/warehouse',
  meta: { title: '基础信息管理', icon: 'icon-jilu' },
  children: [
    {
      path: 'warehouse',
      name: 'warehouse',
      component: () => import('@/views/warehouse'),
      meta: { title: '仓库管理' }
    },
    {
      path: 'area',
      name: 'area',
      component: () => import('@/views/area'),
      meta: { title: '库区管理' }
    },
    {
      path: 'location',
      name: 'location',
      component: () => import('@/views/location'),
      meta: { title: '库位管理' }
    },
    {
      path: 'locationview',
      name: 'locationview',
      component: () => import('@/views/locationview'),
      meta: { title: '库位视图' }
    },
    {
      path: 'goods',
      name: 'goods',
      component: () => import('@/views/goods'),
      meta: { title: '货品管理' }
    },
    {
      path: 'goodstype',
      name: 'goodstype',
      component: () => import('@/views/goodstype'),
      meta: { title: '货品类型管理' }
    },
    {
      path: 'details',
      name: 'details',
      component: () => import('@/views/warehouse/components/AddDetails'),
      meta: { title: '新增仓库', hidden: true }
    },
    {
      path: 'editdetails/:id',
      name: 'editdetails',
      component: () => import('@/views/warehouse/components/AddDetails'),
      meta: { title: '编辑仓库', hidden: true }
    },
    {
      path: 'addarea',
      name: 'addarea',
      component: () => import('@/views/area/components/AddDetails'),
      meta: { title: '新增库区', hidden: true }
    },
    {
      path: 'editarea/:id',
      name: 'editarea',
      component: () => import('@/views/area/components/AddDetails'),
      meta: { title: '编辑库区', hidden: true }
    },
    {
      path: 'addlocation',
      name: 'addlocation',
      component: () => import('@/views/location/components/AddDetails'),
      meta: { title: '新增库位', hidden: true }
    },
    {
      path: 'editlocation/:id',
      name: 'editlocation',
      component: () => import('@/views/location/components/AddDetails'),
      meta: { title: '编辑库位', hidden: true }
    }
  ]
}
